﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Project.Models.System.StaffFile;
using SqlSugar;

namespace Project.Models.System.JurisdictionFile
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public class UserInfo : BaseEntity
    {
        /// <summary>
        /// 职工Id
        /// </summary>
        public long StaffId { get; set; }
        [SugarColumn(IsIgnore = true)]
        public Staff Staff { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string AccountNumber { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string PassWord { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsState { get; set; } = true;
        /// <summary>
        /// 最后一次登录时间
        /// </summary>
        public DateTime LastDateTime { get; set; } = DateTime.Now;
    }
}
